<?php
/**
 * Created by PhpStorm.
 * User: cyc
 * Date: 2017/11/1
 * Time: 下午8:59
 */

abstract class MsggTransmitterDecorator implements Transmitter
{
    protected $transmitter;

    public function __construct(Transmitter $transmitter=null)
    {
        $this->transmitter = $transmitter;
    }

    public function setTransmitter(Transmitter $transmitter)
    {
        $this->transmitter=$transmitter;
    }
    public function transmit($sync = false, $config = [])
    {
       return $this->transmitter->transmit($sync,$config);
    }

    public function execute($sync = false, $config = [])
    {
        return $this->execute($sync, $config);
    }


}